package com.example.demothree.dao;

import com.example.demothree.bean.PurchaseOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface PurchaseOrderDao extends JpaRepository<PurchaseOrder,Long> {
    @Query("from PurchaseOrder where id=?1")
    public PurchaseOrder findBy(Long id);
//    @Query("")
//    public Page<PurchaseOrder> findAll(Pageable pageable);
}
